//
//  EditUserInfoV2ViewModel.h
//  EnvironmentalProtection
//
//  Created by HCreater on 2018/11/6.
//  Copyright © 2018年 HCreater. All rights reserved.
//

#import "SUViewModel2.h"

#import "EPImageData.h"

@interface PersonSubmitData : NSObject

@property (nonatomic, copy) NSString* nickname;
@property (nonatomic, copy) NSString* sex;
@property (nonatomic, copy) NSString* zone;
@property (nonatomic, copy) NSString* sy;
@property (nonatomic, copy) NSString* birth;

@end

@interface ExpertSubmitData : NSObject

@property (nonatomic, copy) NSString* intro;
@property (nonatomic, copy) NSString* contacts;
@property (nonatomic, copy) NSString* mobile;

@end

@interface EnterpriseSubmitData : NSObject

@property (nonatomic, copy) NSString* intro;
@property (nonatomic, copy) NSString* name;
@property (nonatomic, copy) NSString* contacterName;
@property (nonatomic, copy) NSString* mobile;
@property (nonatomic, copy) NSString* address;

@property (nonatomic, strong) ProvinceListData* zoneData;

@end

@interface InsutitutionSumitData : NSObject

@property (nonatomic, copy) NSString* intro;
@property (nonatomic, copy) NSString* servContent;
@property (nonatomic, copy) NSString* category;
@property (nonatomic, copy) NSString* name;
@property (nonatomic, copy) NSString* mobile;
@property (nonatomic, copy) NSString* contacts;
@property (nonatomic, copy) NSString* address;

@property (nonatomic, strong) ProvinceListData* zoneData;

@end


@interface EditUserInfoV2ViewModel : SUViewModel2

@property (nonatomic, assign) NSInteger type; // 个人：0 专家：1 机构：2 企业：3

@property (nonatomic, assign) NSInteger showPickerTag;

@property (nonatomic, assign) NSInteger ctrlTag;

@property (nonatomic, strong) NSMutableArray* personCertImages;
@property (nonatomic, strong) NSMutableArray* busyCertImages;
@property (nonatomic, strong) NSMutableArray* aboutCertImages;

@property (nonatomic, strong) RACSignal* personCertImagesChangeSignal;
@property (nonatomic, strong) RACSignal* busyCertImagesChangeSignal;
@property (nonatomic, strong) RACSignal* aboutCertImagesChangeSignal;

@property (nonatomic, strong) RACCommand* normalUserReqCmd;
@property (nonatomic, strong) RACCommand* enterpriseZoneReqCmd;
@property (nonatomic, strong) RACCommand* institutionZoneReqCmd;
@property (nonatomic, strong) RACCommand* submitCmd;
@property (nonatomic, strong) RACCommand* addImgCmd;
@property (nonatomic, strong) RACCommand* deleteImgCmd;
@property (nonatomic, strong) RACCommand* showImgPickerCmd;
@property (nonatomic, strong) RACCommand* changeAvatarCmd;

@property (nonatomic, strong) PersonSubmitData* personSubmitData;
@property (nonatomic, strong) ExpertSubmitData* expertSubmitData;
@property (nonatomic, strong) EnterpriseSubmitData* enterpriseSubmitData;
@property (nonatomic, strong) InsutitutionSumitData* insutitutionSumitData;

@property (nonatomic, copy) NSString* nickname;
@property (nonatomic, copy) NSString* sy;
@property (nonatomic, copy) NSString* sex;
@property (nonatomic, copy) NSString* birth;
@property (nonatomic, copy) NSString* zone;
@property (nonatomic, copy) NSString* intro;
@property (nonatomic, copy) NSString* expertContacter;
@property (nonatomic, copy) NSString* expertContactMobile;
@property (nonatomic, copy) NSString* companyIntro;
@property (nonatomic, copy) NSString* companyContact;
@property (nonatomic, copy) NSString* mechanismIntro;
@property (nonatomic, copy) NSString* mechanismContact;
@property (nonatomic, copy) NSString* mechanismServContent;

@property (nonatomic, copy) NSString* mczone;

- (void)chooseSTXY:(NSString *)text;

@end
